package com.yuqiao.read.design.decorator;

/**
 * 奶泡
 */
public class Whip extends CondimentDecorator {
    Beverage beverage;
    public Whip(Beverage beverage){
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription().concat("Whip");
    }

    @Override
    public double cost() {
        return .10+beverage.cost();
    }
}
